/*
 *  Copyright (c) 2011, StripBandunk and/or its affiliates. All rights reserved.
 * 
 *       http://stripbandunk.com/
 * 
 *  STRIPBANDUNK PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.stripbandunk.tutorial.customizemessagebox.helper;

import java.awt.Component;
import javax.swing.JOptionPane;

/**
 *
 * @author Eko Kurniawan Khannedy
 */
public final class MessageBoxCreator {
    
    public static int showQuestionBox(Component parent, String title, String message,
            String[] option, int defaultIndex) {
        return JOptionPane.showOptionDialog(parent, message, title, JOptionPane.YES_NO_OPTION,
                JOptionPane.QUESTION_MESSAGE, null, option, option[defaultIndex]);
    }
}
